
[#assign pageURL=hrefFormer/]
<div class="digg">
<div align="right">
<!--<em>${pagination.totalCount}</em>-->
[#if pagination.totalCount > pagination.pageSize]
	[#if pagination.totalPage > 8 && pagination.pageNo > 3 ]
		<a href="${pageURL}&pageNo=1">1 ...</a>
	[/#if]	
	[#if pagination.pageNo !=  pagination.prePage]
		<a href="${pageURL}&pageNo=${pagination.prePage}" >&lt;&lt;</a>
	[/#if]	
	[#if pagination.totalPage > 8 && pagination.pageNo > 3 && pagination.totalPage - ( pagination.pageNo - 2 ) > 7 ]	
		[#assign begin = pagination.pageNo - 2]
	    [#assign end = (pagination.pageNo-2)+7  ]
		[#list begin..end as x]
			[#if pagination.pageNo == x ]
				<span class="current">${x}</span>
			[#else]
				<a href="${pageURL}&pageNo=${x}">${x}</a>
			[/#if]
		[/#list]
	[#else]
		[#if  pagination.totalPage > 8 &&  pagination.pageNo > 3]
			[#assign begin1 = pagination.totalPage - 7]
	    	[#assign end1 = pagination.totalPage ]
	    	[#list begin1..end1 as x]
				[#if pagination.pageNo == x ]
					<span class="current">${x}</span>
				[#else]
					<a href="${pageURL}&pageNo=${x}">${x}</a>
				[/#if]
			[/#list]
		[#else]
			[#if pagination.totalPage > 8 ]
				[#assign end2 = 8]
				[#list 1..end2 as x]
					[#if pagination.pageNo == x ]
						<span class="current">${x}</span>
					[#else]
						<a href="${pageURL}&pageNo=${x}">${x}</a>
					[/#if]
				[/#list]
			[#else]
				[#assign end3 = pagination.totalPage]
				[#list 1..end3 as x]
					[#if pagination.pageNo == x ]
						<span class="current">${x}</span>
					[#else]
						<a href="${pageURL}&pageNo=${x}">${x}</a>
					[/#if]
				[/#list]
			[/#if]
		[/#if]
	[/#if]
	
	[#if pagination.pageNo != pagination.nextPage]
		<a href="${pageURL}&pageNo=${pagination.nextPage}">&gt;&gt;</a>
	[/#if]
	
	[#if pagination.totalPage > 8 && ( pagination.totalPage - pagination.pageNo ) > 5]
		<a href="${pageURL}&pageNo=${pagination.totalPage}">... ${pagination.totalPage}</a>
	[/#if]
[/#if]     
</div>          
</div>              




